﻿using DotPowerJob.Middleware;
using Microsoft.AspNetCore.Builder;
using System;
using System.Collections.Generic;
using System.Text;

namespace DotPowerJob.Extensions
{
    public static class ApplicationBuilderExtensions
    {
        public static IApplicationBuilder UsePowerJobExecutor(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<PowerJobExecutorMiddleware>();
        }
    }
}
